1. /* sifipow.cpp by K.Tsuru */
  2. // function ID 4106 BRADIX
  3. /**************************************************************
  4. SInteger classes
  5. It provides to the n-th powewr of x(x^n) Knuth's binary method.
  6. It provides to avoid an error in the statement such as
  7. SInteger a(10), r;
  8. r=LPow(a, 200) -1;
  9. Because "operator-()" of SLong class is called and it interprets
  10. as "SInteger - SLong" operation.
  11. If it splits two statements
  12. r = LPow(a, 200);
  13. r -= 1;
  14. no error causes.
  15. ***************************************************************/
  16. #ifndef SN_H
  17. #include "sn.h"
  18. #endif
  19. SInteger Ipow(const SInteger& x, ulong n){
  20. SInteger r;
  21. r = Lpow(x, n); //Type (radix) of "r" is the same as that of "x".
  22. return r;
  23. }

sifipow.cpp : last modifiled at 2016/01/22 16:05:16(736 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).